package com.honey.mamabike.security;

import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;

/**
 * Created by setsun on 2017/10/27.
 */
public class RestAuthenticationProvider implements AuthenticationProvider {
    @Override
    public Authentication authenticate(Authentication authentication) throws AuthenticationException {
        System.out.println(333);
        return null;
    }

    /**
     * 支持类型
     * @param aClass
     * @return
     */
    @Override
    public boolean supports(Class<?> aClass) {
        System.out.println(222);
        return false;
    }
}
